package com.clps.digital.controller;

import com.clps.digital.common.BaseResponse;
import com.clps.digital.common.ResultUtils;
import com.clps.digital.model.dto.wealthManagement.WealthManagementRequest;
import com.clps.digital.service.WealthManagementService;

import java.math.BigDecimal;

/**
 * @Author: 小炎子
 * @Date: 2024/9/3 下午3:57
 * @Description: 理财控制层
 **/
public class WealthManagementController {

    private WealthManagementService wealthManagementService;

    /*
    * @Author 小炎子
    * @Description 返回利率
    * @Date 下午4:43 2024/9/3
    */
    public BaseResponse<BigDecimal> save(WealthManagementRequest wealthManagementRequest) {
        BigDecimal rate = wealthManagementService.save(wealthManagementRequest);
        return ResultUtils.success(rate);
    }

}
